<?php

namespace App\Models;

class EquipmentCompany extends Model
{
    protected $fillable = [
        'field_name',
    ];
    protected $table = 'equipment_company';
    protected $equipmentCompanyStatus=[0=>'停用',1=>'启用'];

    public function getStatusAttribute($value)
    {
        return isset($this->equipmentCompanyStatus[$value]) ? $this->equipmentCompanyStatus[$value] : reset($this->equipmentCompanyStatus);
    }
}
